function digu_hdl(){
	//console.log('Works.')
	
	
	var toPost = [];
	$('.pin .PinImage img').each(function(){
		var pic_url = $(this).attr('src'),
			pic_key = $(this).attr('src');
		pic_url = pic_url.replace(/\/196\//,'/619/');
		toPost.push({
			'pic_url' : pic_url,
			'pic_key' : pic_key,
			'source'  : 'digu',
			'trust'   : 1
		});
	});

	//console.log(JSON.stringify(toPost));
	_submit(toPost);
	
	//phantom.exit();
		
}

//test
//phantom.injectJs('../spider.js');

spider.addTask({
	delay: 0,
	url: 'http://www.digu.com/tag/%E7%BE%8E%E5%A5%B3',
	handler: digu_hdl
});